<?php
function do_html_header(){
?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="./base.css">
	<link rel="stylesheet" type="text/css" href="./login.css">
	<script type="text/javascript" src="./jquery.js"></script>
	<script type="text/javascript" src="./judge.js"></script>
	<title>网络书签</title>
</head>
<body>
	<div class="big_box">
		<div class="header">
			<div class="logo">
				<a href="index.php"><img src=""></a>
			</div>
		</div>
<?php
}
function do_html_introduce(){
?>
			<div class="introduce">
				<p class="info"></p>
			</div>
<?php
}
function do_html_menu($user_info){
?>
<div class="user_menu">
	<div class="user_name"><a href="user_info.php"><?php echo $user_info?></a></div>
	<div class="change_password"><a href="change_password.php">修改密码</a></div>
	<div class="contact_me"><a href="contact_me.php">联系我</a></div>
	<div class="logout"><a href="logout.php">安全退出</a></div>
</div>
<div class="bookmark">
	<div class="bookmark_menu">
		<div class="home_page"><a href="index.php">HOME</a></div>
		<div class="add_mark"><a href="add_mark.php">添加书签</a></div>
		<div class="delete_mark"><a href="delete_mark.php">删除书签</a></div>
		<div class="recommend_mark"><a href="recommend_mark.php">向我推荐</a></div>
	</div>
	<!--预存位置，暂时添加为一张图片,可以拓展添加些广告-->
	<?php
	}
	function do_html_index_content(){
	?>
	<div class="bookmark_info">
	<img src="">
	</div>
</div>
<?php
	}
	function do_html_user_info($row){
	?>
	<div class="user_info">
		<p1>用户名：<?php printf($row[0]);?></p1>
		<p2>邮箱：<?php printf($row[2]);?></p2>
		<p3><a href="http://user.qzone.qq.com/1051563965">我的空间</a></p3>
		<p4><a href="http://blog.sina.com.cn/u/3949064343">我的博客</a></p4>
	</div>
</div>
<?php
	}
	function do_html_change_password(){
	?>
	<div class="bookmark_info">
		<div class="add_content"><p>修改密码</p></div>
		<div class="add_content_form">
			<form method="POST" action="change_password.php">
			<div class="add_content_form1">旧密码：<input type="password" name="old"></div>
			<div class="add_content_form2">新密码：<input type="password" name="new1"></div>
			<div class="add_content_form2">新密码：<input type="password" name="new2"></div>
			<div class="add_content_form3"><input type="submit" value="提交"></div>
			</form>		
		</div>
	</div>
</div>
	<?php
	}
	function do_html_add_content(){
	?>
	<div class="bookmark_info">
		<div class="add_content"><p>添加书签</p></div>
		<div class="add_content_form">
			<form method="POST" action="add_mark.php">
			<div class="add_content_form1">网址：<input type="text" name="url_name"></div>
			<div class="add_content_form2">网站链接：<input type="text" name="url"></div>
			<div class="add_content_form3"><input type="submit" value="提交"></div>
			</form>		
		</div>
	</div>
</div>
<?php
	}
	function do_html_delete_content($mark_info){
	?>
	<div class="bookmark_info">
		<div class="add_content"><p>删除书签</p></div>
		<div class="add_content_form">
			<form method="POST" action="delete_mark.php">
			<script type="text/javascript">
			//js添加显示的内容，和删除的按钮
			</script>
			<!--<div class="add_content_form1">网址：<input type="text" value="请输入网站名"></div>
			<div class="add_content_form2">网站链接：<input type="text" value="请输入网站URL"></div>
			<div class="add_content_form3"><input type="submit" value="提交"></div>
			</form>	
			-->	
		</div>
	</div>
</div>
<?php
	}
	function do_html_recommend_content($mark_recommend){
	?>
	<div class="bookmark_info">
		<div class="add_content"><p>推荐书签</p></div>
		<div class="add_content_form">
			<script type="text/javascript">
			//js添加动态显示的内容，推荐的书签
			</script>
			<!--
			<form method="POST" action="recommend_mark.php">
			<div class="add_content_form1">网址：<input type="text" value="请输入网站名"></div>
			<div class="add_content_form2">网站链接：<input type="text" value="请输入网站URL"></div>
			<div class="add_content_form3"><input type="submit" value="提交"></div>
			</form>
			-->		
		</div>
	</div>
</div>
<?php
}
function do_html_login_form(){
	?>
		<div class="register_prompt">
			<a href="register.php">没有账号，请注册！</a>
		</div>
		<div class=l"ogin_box">
			<div class="img_box"><img src=""></div>
			<div class="login_form">
				<form method="POST" action="./login.php">
				<div class="login_username">用户名：<input type="text" name="username" id="username"></div>
				<div class="login_password">密码：<input type="password" name="password" id="password"></div>
				<div class="login_button"><input type="submit" value="登陆" ></div>
				<div class="login_forget_password"><a href="foget_password.php">忘记密码？</a></div>
				</form>
		</div>
	</div>
	<?php
	}
function do_html_forget_password(){
	?>
	<div class="register">
		<p>重置密码</p>
	</div>
	<div class="register_form">
		<form method="POST" action="./forget_password.php">
			<div class="register_username"><input type="text" value="请输入需要重置的用户名"></div>
			<div class="register_submit"><input type="submit" value="重置密码"></div>
		</form>
	</div>
	<?php
	}
function do_html_register_form(){
	?>
	<div class="register">
		<p>用户注册</p>
	</div>
	<div class="register_form">
		<form method="POST" action="./register.php">
			<div class="register_username">用户名：<input type="text" name="username"></div>
			<div class="register_email">邮箱地址：<input type="text"  name="email"></div>
			<div class="register_password">密码：<input type="password" name="password"></div>
			<div class="confirm_password">确认密码：<input type="password" name="confirm_password"></div>
			<div class="register_submit"><input type="submit" value="确认"></div>
		</form>
	</div>
<?php
} 
function do_html_footer(){
	?>
	<div class="footer">
		<div class="footer_content">
			<p class="content1">湖南科技大学逸夫楼625</p>
			<p class="content2">gglinux</p>
		</div>
	</div>
	</div>
</body>
</html>
<?php
}?>